package com.tudouji.project.d3.domain;

import java.math.BigDecimal;
import com.tudouji.framework.aspectj.lang.annotation.Excel;
import com.tudouji.framework.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * D3平台商品对象 d3_product
 * 
 * @author tudouji
 * @date 2023-03-29
 */
public class D3Product extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 店铺商品ID */
    private Long platformId;

    /** 店铺商品类型,SC_ITEM表示天猫货品 */
    @Excel(name = "店铺商品类型,SC_ITEM表示天猫货品")
    private String thirdskutype;

    /** 平台spuId */
    @Excel(name = "平台spuId")
    private String refspuid;

    /** 平台skuId */
    @Excel(name = "平台skuId")
    private String refskuid;

    /** 平台sku状态, ON: 商家, OFF: 下架, DELETE: 删除 */
    @Excel(name = "平台sku状态, ON: 商家, OFF: 下架, DELETE: 删除")
    private String status;

    /** 商家编码 */
    @Excel(name = "商家编码")
    private String outerid;

    /** 货品标题 */
    @Excel(name = "货品标题")
    private String title;

    /** 条码 */
    @Excel(name = "条码")
    private String barcode;

    /** sku规格属性 */
    @Excel(name = "sku规格属性")
    private String standards;

    /** 平台类型id */
    @Excel(name = "平台类型id")
    private String cid;

    /** sku销售价格 */
    @Excel(name = "sku销售价格")
    private BigDecimal price;

    /** sku数量 */
    @Excel(name = "sku数量")
    private BigDecimal num;

    /** 匹配状态, UN_MATCHED: 未匹配, MATCHED: 匹配 */
    @Excel(name = "生成ERP状态, 1: 生成, 0: 不生成")
    private String matchstatus;

    /** 匹配方式: MANUAL: 手动, AUTO: 自动 */
    @Excel(name = "匹配方式: MANUAL: 手动, AUTO: 自动")
    private String matchtype;

    /** 系统skuId */
    @Excel(name = "系统skuId")
    private Long skuid;

    /** 系统SpuId */
    @Excel(name = "系统SpuId")
    private Long productid;

    /** 平台商品图片地址 */
    @Excel(name = "平台商品图片地址")
    private String picurl;

    /** 平台商品链接地址 */
    @Excel(name = "平台商品链接地址")
    private String url;

    /** 同步错误消息 */
    @Excel(name = "同步错误消息")
    private String syncerrmsg;

    /** 系统SKU编码 */
    @Excel(name = "系统SKU编码")
    private String sysouterid;

    private Long shopId;

    /**店铺名称*/
    private String name;

    /**1:未维护商品对应关系*/
    private Integer flag;

    public Integer getFlag() {
        return flag;
    }

    public void setFlag(Integer flag) {
        this.flag = flag;
    }

    public String getName(){
        return name;
    }

    public void setName(String name){
        this.name=name;
    }

    public Long getPlatformId() {
        return platformId;
    }

    public void setPlatformId(Long platformId) {
        this.platformId = platformId;
    }

    public Long getShopId() {
        return shopId;
    }

    public void setShopId(Long shopId) {
        this.shopId = shopId;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setThirdskutype(String thirdskutype) 
    {
        this.thirdskutype = thirdskutype;
    }

    public String getThirdskutype() 
    {
        return thirdskutype;
    }
    public void setRefspuid(String refspuid) 
    {
        this.refspuid = refspuid;
    }

    public String getRefspuid() 
    {
        return refspuid;
    }
    public void setRefskuid(String refskuid) 
    {
        this.refskuid = refskuid;
    }

    public String getRefskuid() 
    {
        return refskuid;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setOuterid(String outerid) 
    {
        this.outerid = outerid;
    }

    public String getOuterid() 
    {
        return outerid;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setBarcode(String barcode) 
    {
        this.barcode = barcode;
    }

    public String getBarcode() 
    {
        return barcode;
    }
    public void setStandards(String standards) 
    {
        this.standards = standards;
    }

    public String getStandards() 
    {
        return standards;
    }
    public void setCid(String cid) 
    {
        this.cid = cid;
    }

    public String getCid() 
    {
        return cid;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setNum(BigDecimal num) 
    {
        this.num = num;
    }

    public BigDecimal getNum() 
    {
        return num;
    }
    public void setMatchstatus(String matchstatus) 
    {
        this.matchstatus = matchstatus;
    }

    public String getMatchstatus() 
    {
        return matchstatus;
    }
    public void setMatchtype(String matchtype) 
    {
        this.matchtype = matchtype;
    }

    public String getMatchtype() 
    {
        return matchtype;
    }
    public void setSkuid(Long skuid) 
    {
        this.skuid = skuid;
    }

    public Long getSkuid() 
    {
        return skuid;
    }
    public void setProductid(Long productid) 
    {
        this.productid = productid;
    }

    public Long getProductid() 
    {
        return productid;
    }
    public void setPicurl(String picurl) 
    {
        this.picurl = picurl;
    }

    public String getPicurl() 
    {
        return picurl;
    }
    public void setUrl(String url) 
    {
        this.url = url;
    }

    public String getUrl() 
    {
        return url;
    }
    public void setSyncerrmsg(String syncerrmsg) 
    {
        this.syncerrmsg = syncerrmsg;
    }

    public String getSyncerrmsg() 
    {
        return syncerrmsg;
    }
    public void setSysouterid(String sysouterid) 
    {
        this.sysouterid = sysouterid;
    }

    public String getSysouterid() 
    {
        return sysouterid;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("platformId", getPlatformId())
            .append("id", getId())
            .append("thirdskutype", getThirdskutype())
            .append("refspuid", getRefspuid())
            .append("refskuid", getRefskuid())
            .append("status", getStatus())
            .append("outerid", getOuterid())
            .append("title", getTitle())
            .append("barcode", getBarcode())
            .append("standards", getStandards())
            .append("cid", getCid())
            .append("price", getPrice())
            .append("num", getNum())
            .append("matchstatus", getMatchstatus())
            .append("matchtype", getMatchtype())
            .append("skuid", getSkuid())
            .append("productid", getProductid())
            .append("picurl", getPicurl())
            .append("url", getUrl())
            .append("syncerrmsg", getSyncerrmsg())
            .append("sysouterid", getSysouterid())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .append("name",getName())
            .toString();
    }
}
